// Copyright 2023 Srhino Co., Ltd. All rights reserved.

package v1

import (
	"git.ouryun.cn/lzj1/grpc-bidirectional-stream/pkg/apis/v1"
	"google.golang.org/protobuf/proto"
)

type GrpcServer interface {
	Start() error
	Stop()
	// Request 接收转发请求
	Request(data proto.Message, params *v1.QueryParams, messageType v1.StreamMessage_Type, requestId uint64) (*v1.StreamMessage, error)
}
